from django.conf.urls import url

from orders import views

urlpatterns = [
    url(r'^getnumber/$', views.GetNumberOfOrder.as_view()),  # 导表  导订单表
    # url(r'^xiaomi/$', views.GetDataForXiaoMi.as_view()),
    url(r'^orderupdate/$', views.UpdateMysqlOrders.as_view()),  # 更新订单
    # url(r'^orderlist/(?P<status>[\w-]+)/$', views.OrdersListView.as_view()),
    url(r'^orderlist/$', views.OrdersListView.as_view()),    #订单列表
    # url(r'^orderlist1/(?P<status>[\w-]+)/$', views.OrdersListView1.as_view()),
    # url(r"^imagecodeid/(?P<image_code_id>[\w-]+)/$", views.ImageCodeView.as_view()),
    url(r'^orderitems/$', views.OrderItemView.as_view()),    # 订单详情
    url(r'^orderitemupdate/$', views.OrderItemView.as_view()),  # 更新订单详情
    url(r'^getorder/$', views.GetOrder.as_view()),    # 获取单个订单
    url(r'^getorderitemlist/$', views.OrderItemsListView.as_view()),   # 获取订单详情列表
    url(r'^goodssellcompitition/$', views.GoodsSellCompetition.as_view()),   # 商品销售排名
    url(r'^updateimage/$', views.GetImage.as_view()),    # 更新图片  暂时没用
    url(r'^delivergoods/$', views.OrderDeliver.as_view()),   # 发货
    url(r'^updateorderstatus/$', views.UpdateOrderStatus.as_view()),   #修改订单状态
    url(r'^updateinfo/$', views.UpdateInfo.as_view()),   # 更新备注
    url(r'^getcustomsdeclist/$', views.GetCustomsDeclarationInfoList.as_view()),  # 获取报关信息列表


    url(r'^createorder/$', views.CreateOrder.as_view()),     # 申请运单
    url(r'^labelprint/$', views.LabelPrint.as_view()),     # 打印面单

    url(r'^orderacknowledgment/$', views.OrderAcknowledgment.as_view()),     # 向亚马逊发送确认订单信息绑定自己的订单序列号
    url(r'^orderfulfillment/$', views.OrderFulfillment.as_view()),   # 上传亚马逊运单号
    url(r'^getupdatelist/$', views.GetUpdateList.as_view()),   # 获取订单同步信息  从redis中获取
    url(r'^writecustomsdeclarationInfos/$', views.WriteCustomsDeclarationInfos.as_view()),  # 填写报关信息

    url(r'^exportorders/$', views.ExportOrders.as_view()),  # 导表  导订单表
    url(r'^gettruefinance/$', views.GetTrueFinance.as_view()),  # 导表  导订单表
    # url(r'^skip/$', views.TestView.as_view()),
    url(r'^updateaddress/$', views.UpdateShippingAddress.as_view()),  # 修改收货地址
    url(r'^updatetqname/$', views.UpdateTQName.as_view()),  # 修改唯一编号
    url(r'^updatetrackingnumber/$', views.UpdateTrackingNumber.as_view()),  # 修改唯一编号
    url(r'^updateorderstatusexceptshipped/$', views.UpdateOrdersExceptShipped.as_view()),  # 更新订单状态除了shipped订单
    url(r'^deleteoneorder/$', views.DeleteOneOrderView.as_view()),  # 更新订单状态除了shipped订单
    url(r'^getoperationlog/$', views.GetOperationLog.as_view()),  # 查看操作记录


]